package com.xiaotu.common.model;

/**
 * @类名 TVPublicModel
 * @日期 2017年10月09日
 * @作者 王艳龙
 * @功能 电视局备案公示实体类
 */
public class TVPublicModel extends TVModel{

	private String pubMonth;//公示月份
	private String produceCompany;//制作单位
	private String subject;//题材
	private String sets;//集数
	private String shoottime;//拍摄日期
	private String makecycle;//制作周期
	private String introduction;//剧情简介
	private String licenseNum;//许可证号
	private long timestamp;
	
	public TVPublicModel() {
		super();
	}

	public TVPublicModel(String tvId,String pubMonth, String tvName, String area, String produceCompany,
			String subject, String sets, String shoottime, String makecycle, String introduction, String licenseNum) {
		super(tvId,tvName,area);
		this.pubMonth = pubMonth;
		this.produceCompany = produceCompany;
		this.subject = subject;
		this.sets = sets;
		this.shoottime = shoottime;
		this.makecycle = makecycle;
		this.introduction = introduction;
		this.licenseNum = licenseNum;
		this.timestamp = System.currentTimeMillis();
	}
	
	@Override
    public boolean equals(Object o)
    {
        if (this == o)
            return true;
        if (o == null || getClass() != o.getClass())
            return false;

        TVPublicModel that = (TVPublicModel) o;

        return getLicenseNum() != null ? getLicenseNum().equals(that.getLicenseNum()) : that.getLicenseNum() == null;
    }

    @Override
    public int hashCode()
    {
        return getLicenseNum() != null ? getLicenseNum().hashCode() : 0;
    }

	public long getTimestamp() {
		return timestamp;
	}

	public void setTimestamp(long timestamp) {
		this.timestamp = timestamp;
	}

	public String getPubMonth() {
		return pubMonth;
	}

	public void setPubMonth(String pubMonth) {
		this.pubMonth = pubMonth;
	}

	public String getProduceCompany() {
		return produceCompany;
	}

	public void setProduceCompany(String produceCompany) {
		this.produceCompany = produceCompany;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}
	
	public String getSets() {
		return sets;
	}

	public void setSets(String sets) {
		this.sets = sets;
	}

	public String getShoottime() {
		return shoottime;
	}

	public void setShoottime(String shoottime) {
		this.shoottime = shoottime;
	}

	public String getMakecycle() {
		return makecycle;
	}

	public void setMakecycle(String makecycle) {
		this.makecycle = makecycle;
	}

	public String getIntroduction() {
		return introduction;
	}

	public void setIntroduction(String introduction) {
		this.introduction = introduction;
	}
	
	public String getLicenseNum() {
		return licenseNum;
	}

	public void setLicenseNum(String licenseNum) {
		this.licenseNum = licenseNum;
	}
}
